package com.marinesky.mstools.common;

/*
                   _ooOoo_
                  o8888888o
                  88" . "88
                  (| -_- |)
                  O\  =  /O
               ____/`---'\____
             .'  \\|     |//  `.
            /  \\|||  :  |||//  \
           /  _||||| -:- |||||-  \
           |   | \\\  -  /// |   |
           | \_|  ''\---/''  |   |
           \  .-\__  `-`  ___/-. /
         ___`. .'  /--.--\  `. . __
      ."" '<  `.___\_<|>_/___.'  >'"".
     | | :  `- \`.;`\ _ /`;.`/ - ` : | |
     \  \ `-.   \_ __\ /__ _/   .-` /  /
======`-.____`-.___\_____/___.-`____.-'======
                   `=---='
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         佛祖保佑       永无BUG
*/
public interface Constant {


    //codec常用的常量字符
    public interface CodecType{
        //MD5字符值
        public final static String CODE_MD5="MD5";
    }

    //字符集常量
    public interface Charset{

        //utf8编码
        public final static String UTF8="utf8";
        //US-ASCII
        public final static String US_ASCII="US-ASCII";
        //ISO8859-1
        public final static String ISO8859_1="ISO8859-1";
    }

    //文件常量
    public interface File{

        //文件名中的点
        public final static String FILE_DOT=".";

        //classpath:前缀
        public final static String CLASSPATH_PREFIX="classpath:";

        //url:前缀
        public final static String URL_PREFIX="url:";

        //Byte(字节)
        public final static String UNIT_BYTE="B";

        //KB(千字节)
        public final  static String UNIT_KB="KB";

        //MB(兆字节)
        public final static String UNIT_MB="MB";

        //GB(吉兆字节)
        public final static String UNIT_GB="GB";

        //TB(万亿字节)
        public final static String UNIT_TB="TB";


        //压缩文件
        public final static String EXTENSION_ZIP="zip";
        //gz文件
        public final static String EXTENSION_GZ="gz";
    }

    //时间单位
    public interface Date{

        //年
        public final static String UNIT_YEAR="y";
        //月
        public final static String UNIT_MONTH="m";
        //周
        public final static String UNIT_WEEK="w";
        //日
        public final static String UNIT_DAY="d";
        //小时
        public final static String UNIT_HOUR="h";
        //分钟
        public final static String UNIT_MINUTE="min";
        //秒
        public final static String UNIT_SECOND="s";
        //毫秒
        public final static String UNIT_MILLI_SECOND="ms";

    }

    //与系统相关的参数
    public interface  SystemsPlatform{

        //换行字符
        public final static String LINEBREAK=System.getProperty("line.separator");
        //系统默认编码
        public final static String DEFAULT_ENCODING = System.getProperty("file.encoding");

    }

}
